package com.tanger.im.entity;

import com.tanger.common.jpa.IDEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Description IM用户分组公告实体类
 * @Author Hchenbin
 * @Date 2023/12/25 16:28
 * @Version 1.0
 */
@Data
@Entity
@NoArgsConstructor
@Api(value = "IMUserGroupNotice", tags= " IM用户分组公告实体类")
@Table(name = "im_user_group_notice")
public class ImUserGroupNotice extends IDEntity implements Serializable {

	@Column(columnDefinition = "bigint(20) NOT NULL COMMENT '分组ID'")
	@ApiModelProperty(value = "分组ID")
	private Long groupId;
	@Column(columnDefinition = "varchar(100) NOT NULL COMMENT '标题'")
	@ApiModelProperty(value = "标题")
	private String title;
	@Column(columnDefinition = "varchar(256) NOT NULL COMMENT '公告'")
	@ApiModelProperty(value = "公告")
	private String notice;
	@Column(columnDefinition = "bigint(20) NOT NULL COMMENT '创建时间'")
	@ApiModelProperty(value = "创建时间")
	private Long createTime;
	@Column(columnDefinition = "bigint(20) NOT NULL COMMENT '更新时间'")
	@ApiModelProperty(value = "更新时间")
	private Long updateTime;

	public ImUserGroupNotice(Long groupId) {
		this.groupId = groupId;
	}
}
